package mars.ns.selectors
import mars.ns.core.Node
import mars.ns.core.Network
import scala.util.Random
import mars.ns.core.DefaultLink
import mars.ns.core.Link

trait ConnectSometimesRandomly[T <: Node] extends RandomSelection[T] {
  
    override def connect(network: Network[T], node: T) :Set[Link] = {
    	if(Random.nextInt(10) == 1) {
    		super.connect(network,node)
    	} else {
    		return Set[Link]()
    	}
    }

}